//  公告弹框
// 成功通知
import { MessageBox, Notification } from 'element-ui'
export function notifySuccess(content, title) {
  Notification({
    title: title || '提示',
    message: content,
    type: 'success',
    duration: 3000
  })
}
export function notifyError(content, title) {
  Notification({
    title: title || '提示',
    message: content,
    type: 'error',
    duration: 3000
  })
}
export function notify(content, title, type) {
  Notification({
    title: title || '提示',
    message: content,
    type: type || 'error',
    duration: 3000
  })
}
export function msgBox(title, content, confirm, callback) {
  MessageBox.alert(content, title, {
    confirmButtonText: confirm || '确定',
    callback: action => {
      callback()
    }
  })
}

